package com.ryan.spring.annotation.model;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * Created by kaimin on 28/1/2019.
 * time : 10:15
 */
public class Cat implements InitializingBean,DisposableBean {
    public void destroy() throws Exception {
        System.out.println("bean的销毁逻辑");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("bean的set之后，完成初始化逻辑 ");
    }
}
